package com.oocl.oopdemo.fiveday;

public class HelloConstructor {
    
	public static void main(String[] args){
		David david=new David();
	}
}

class Gay{
	public Gay(){
		//super(); //隐藏的super
		System.out.println("Gay....");
	}
}
class Noah extends Gay{
	public Noah(){
		System.out.println("Noah...");
	}
}
class David extends Noah{
	public David(){
		System.out.println("David....");
	}
}